package com.hmy.finance.service.receipt.dto.receiptOffset;


import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.util.List;

@Data
public class ContractApportionDto implements Serializable {

    /**
     * 合同id
     */
    private Long contractId;

    /**
     * 合同no
     */
    private String contractNo;

    /**
     * 核销序号(优先级)
     */
    private Integer serialNo;

    /**
     * 合同逾期明细
     */
    private List<OverdueDetailDto> overdueDetails;

    /**
     * 合同总欠款金额
     */
    private BigDecimal contractTotalArrearsAmount = BigDecimal.ZERO;

    /**
     * 合同应核销金额
     */
    private BigDecimal contractRequireOffsetAmount = BigDecimal.ZERO;

    /**
     * 合同实际核销金额
     */
    private BigDecimal contractActualOffsetAmount = BigDecimal.ZERO;

    /**
     * 系统建议核销金额
     */
    private BigDecimal contractSuggestOffsetAmount = BigDecimal.ZERO;

    /**
     * 客户核销后总欠款金额
     */
    private BigDecimal contractArrearsAmountAfterOffset = BigDecimal.ZERO;


    @Data
    public class OverdueDetailDto {

        /**
         * 逾期天数-开始
         */
        private Integer overdueDaysStart;
        /**
         * 逾期天数-结束
         */
        private Integer overdueDaysEnd;
        /**
         * 逾期金额
         */
        private BigDecimal overdueAmount;
    }

}
